{% extends 'base.html' %}

{% block title %}确认删除工作流模板{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="d-flex justify-content-between align-items-center mb-4">
                <h2><i class="fas fa-trash me-2"></i>确认删除工作流模板</h2>
                <a href="{% url 'assets:workflow_template_list' %}" class="btn btn-secondary">
                    <i class="fas fa-arrow-left me-1"></i>返回列表
                </a>
            </div>

            <div class="card">
                <div class="card-body">
                    <p>您确定要删除工作流模板 <strong>"{{ template.name }}"</strong>吗？</p>
                    <p class="text-danger">此操作不可恢复。</p>
                    <form method="post">
                        {% csrf_token %}
                        <button type="submit" class="btn btn-danger">确认删除</button>
                        <a href="{% url 'assets:workflow_template_list' %}" class="btn btn-secondary">取消</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
